<?php
	//print_r($_POST);
	include_once "../config.inc.php";
	
	$eve = empty($_POST['eve']) ? 0 : $_POST['eve'];
	//进行返回提示问题
	if($eve == 1){
		$stmt = $pdo->prepare('select id,pwd1 from kp_user where uname=? and email=?');
		$stmt->execute(array($_POST['uname'],$_POST['email']));
		if($arr = $stmt->fetch(PDO::FETCH_ASSOC)){
			echo '[{"upwd":"'.$arr['pwd1'].'","eve":"1"}]';
		}else{
			echo '[{"eve":"0"}]';
		}
	}
?>